#include "search.h"
#include "ui_search.h"

Search::Search(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Search)
{
    ui->setupUi(this);
    ui->warning->hide();
}

Search::~Search()
{
    delete ui;
}

void Search::on_return_2_clicked()
{
    this->hide();
    User *m=new User;
    m->show();
}


void Search::on_sea_clicked()
{
    if(ui->lineEdit->text()!="")
    {
        this->hide();
        SeaRe *m=new SeaRe;
        m->show();
    }
    else
        ui->warning->show();
}

